﻿using System;
using System.IO;
using Core;
using NHibernate;
using NHibernate.Cfg;
using NHibernate.Context;
namespace DataAccessObject.Hibernate
{
    public class NHSessionFactory
    {
        public ISession GetCurrentSession(string name)
        {
            return IoC.Resolve<INHSessionFactory>(name).GetCurrentSession();;
        }
    }
}